package dataFromXml;

import java.util.ArrayList;
import java.util.List;

import org.dom4j.Element;

public class Match {

	Element mNode;
	List<SubMatch> subMatchList;
	Join joinNode;
	
	public Match(Element self) {
		mNode = self;
		subMatchList = new ArrayList<>();
		joinNode = null;
	}
	
	public void addSubMatchNode(SubMatch son) {
		subMatchList.add(son);
	}
	
	public void setJoinNode(Join son) {
		joinNode = son;
	}
	
	public List<SubMatch> getSubMatchList() {
		return subMatchList;
	}
	
	public Join getJoinNode() {
		return joinNode;
	}
	
	public Element getElement() {
		return mNode;
	}
}
